/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package co.com.losalpes.marketplace.pitrack.ws;

import co.com.losalpes.marketplace.pitrack.beans.TRACKLocal;
import co.com.losalpes.marketplace.pitrack.bos.TrackBO;
import java.util.List;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;

/**
 *
 * @author marketplace
 */
@WebService()
@Stateless()
public class PI_TRACK {
    @EJB
    private TRACKLocal ejbRef;
    // Add business logic below. (Right-click in editor and choose
    // "Web Service > Add Operation"

    @WebMethod(operationName = "crearTrack")
    public String crearTrack(@WebParam(name = "trackBO")
    TrackBO trackBO) {
        return ejbRef.crearTrack(trackBO);
    }

    @WebMethod(operationName = "buscarPorUltimoTimeIdTransacciónDiferente")
    public List<TrackBO> buscarPorUltimoTimeIdTransaccionDiferente(@WebParam(name = "nit")
    String nit) {
        return ejbRef.buscarPorUltimoTimeIdTransaccionDiferente(nit);
    }

    @WebMethod(operationName = "buscarTransaccionPorId")
    public TrackBO buscarTransaccionPorId(@WebParam(name = "idTransaccion")
    String idTransaccion) {
        return ejbRef.buscarTransaccionPorId(idTransaccion);
    }
    
    @WebMethod(operationName = "buscarPorNumSeguimiento")
    public List<TrackBO> buscarPorNumSeguimiento(@WebParam(name = "numSeguimiento")
    String numSeguimiento) {
        return ejbRef.buscarPorNumSeguimiento(numSeguimiento);
    }

}
